package com.fanwj.citrus.aidl.proxy;

import android.os.Binder;
import android.os.RemoteException;

import androidx.annotation.NonNull;

public class BinderProxy extends Binder implements IBinderProxy {
    protected boolean onTransact(int code, @NonNull com.fanwj.citrus.aidl.android.os.Parcel data, @NonNull com.fanwj.citrus.aidl.android.os.Parcel reply, int flags) throws com.fanwj.citrus.aidl.android.os.RemoteException {
        try {
            return super.onTransact(code, data.impl, reply.impl, flags);
        } catch (RemoteException e) {
            throw new com.fanwj.citrus.aidl.android.os.RemoteException(e.getMessage());
        }
    }

    public boolean transact(int code, @NonNull com.fanwj.citrus.aidl.android.os.Parcel data, com.fanwj.citrus.aidl.android.os.Parcel reply, int flags) throws com.fanwj.citrus.aidl.android.os.RemoteException {
        try {
            return super.onTransact(code, data.impl, reply.impl, flags);
        } catch (RemoteException e) {
            throw new com.fanwj.citrus.aidl.android.os.RemoteException(e.getMessage());
        }
    }

    public com.fanwj.citrus.aidl.android.os.IInterface queryLocalInterface(@NonNull String descriptor) {
        return null;
    }
}
